<%@page import="com.is.control.EvaluationControl"%>
<%@page import="com.is.model.Evaluation"%>
<%@page import="com.is.util.ParamUtil"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.is.control.ParamStuyearControl"%>
<%@page import="com.is.util.DesData"%>
<%@page import="com.is.control.StudentControl"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查阅单个学生详细情况</title>
</head>
<body>
<%
      DesData des = new DesData();
       //System.out.print("SSS"+ParamUtil.getString(request,"stuId","0")+"SSSS");
      //int stuId = Integer.parseInt(des.decrypt(ParamUtil.getString(request,"stuId","0")));
      int stuId = 0;
      boolean flag=true;
      try{
          stuId = Integer.parseInt(des.decrypt(ParamUtil.getString(request,"stuId","0")));
          }catch(Exception ex){
             flag=false;
             out.print("参数错误<br><a href='students_all.jsp'>返回学生列表</a>");
          }
      System.out.print("SSDDD"+stuId+"DDDD");
      int stuyear = ParamUtil.getInt(request,"stuyear",ParamStuyearControl.getCurrentStuyearId());
      Evaluation e = EvaluationControl.getEvaluationByStuyearAndStuId(stuId, stuyear);
      if(e!=null&&flag){
      %>
      <form>
      <table>
      <tr><td>级别Level</td><%=e.getLevel() %></tr>
      <tr><td>成绩Score</td><td><%=e.getScore() %></td></tr>
      <tr><td colspan="2" align="center">学生评定Evaluation</tr>
      <tr><td>教师评语</td><td>Teachers' Comments</td></tr>
      <tr><td colspan="2" rowspan="5"><%=e.getComments() %></td></tr>
      <tr><td>班主任（签章）Signature：</td></tr>
      <tr><td>奖惩记录</td><td>Records of Rewards and Punishments</td></tr>
      <tr><td colspan="2" rowspan="5"><%=e.getRecords() %></td></tr>
      <tr><td>办公司负责人（签章）Signature：</td></tr>
      <tr><td rowspan=“3”>主管院长（签章）</td><td rowspan=“3”>东北师范大学外国留学生预科部<br>2012年7月</td></tr>
      </table>
      </form>      
      <%
      }
 %>
</body>
</html>